//
//  WLScoreRankCell.m
//  WanLian
//
//  Created by muzhuang on 2018/10/18.
//  Copyright © 2018年 wanlian. All rights reserved.
//

#import "WLScoreRankCell.h"

@implementation WLScoreRankCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.contentView.backgroundColor = wlUIColorRGB(0xFAFAFA);
        _ivRankBack = [[UIImageView alloc] initWithFrame:CGRectMake(WLScaleX(16), (WLScaleX(50)-21)/2.0, 18, 21)];
        [self.contentView addSubview:_ivRankBack];
        
        _labRank = [[UILabel alloc] initWithFrame:CGRectMake(_ivRankBack.frame.origin.x-1, _ivRankBack.frame.origin.y, 20, 20)];
//        _labRank.font = [WLCommonTool fontTypePingFangSCMedium:11];
//        _labRank.textColor = wlLightTextColor;
        _labRank.textAlignment = NSTextAlignmentCenter;
        [self.contentView addSubview:_labRank];
        
        _ivHead = [[UIImageView alloc] initWithFrame:CGRectMake(WLScaleX(45), WLScaleX(12), WLScaleX(26), WLScaleX(26))];
        [self.contentView addSubview:_ivHead];
        _ivHead.layer.cornerRadius = WLScaleX(13);
        _ivHead.layer.masksToBounds = YES;
        
        _labName = [[UILabel alloc] initWithFrame:CGRectMake(WLScaleX(80), WLScaleX(15), WLScaleX(130), WLScaleX(20))];
        _labName.font = [WLCommonTool fontTypePingFangSCMedium:14];
        _labName.textColor = wlDarkGrayColor;
        [self.contentView addSubview:_labName];
        
        _labScore = [[UILabel alloc] initWithFrame:CGRectMake(WIDTH_SCREEN_WL-WLScaleX(130)-WLScaleX(16), WLScaleX(15), WLScaleX(130), WLScaleX(20))];
        _labScore.textColor = wlDarkGrayColor;
        _labScore.textAlignment = NSTextAlignmentRight;
        _labScore.font = [WLCommonTool fontTypePingFangSCRegular:14];
        [self.contentView addSubview:_labScore];
        
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
